<!DOCTYPE html>
<html lang="en" >
<head >
    <meta charset="UTF-8" >
    <title >留言板</title >
    <link rel="stylesheet" href="static/css/global.css" >
    <link rel="stylesheet" href="static/css/zone.css" >
</head >
<body >
<div class="con-wrap white container wrapper" >
    <div class="breadcrumb" >
        <a href="#" >留言板</a >
    </div >
    <div class="text-wrap" >
        <div class="clearfix" >
            <a class="fl" href="/create" >写留言</a >
            <ul class="fr" >
                <li ><a {{if eq 0 .Sort}} class="active" {{end}} href="/index?sort=0" >发布时间排序</a ></li >
                <li ><a {{if eq 1 .Sort}} class="active" {{end}} href="/index?sort=1" >点击数排序</a ></li >
            </ul >
        </div >
        <ul >

        {{/*{{if eq 0 (index . 0)}} class="active" {{end}}*/}}

        {{range .List}}
            <li class="clearfix" >
                <p ><a href="/view?id={{.Id}}" >{{.Title}}</a ></p >
                <ol class="base-gray" >
                    <li class="icon data-icon" ><i ></i >点击数:{{.ViewNum}}</li >
                    <li class="icon data-icon" ><i ></i >{{.Time2}}</li >
                    <li class="edit-wrap " >
                        <a class="fl" href="/editor?id={{.Id}}" >编辑</a >
                        <a class="fr" href="delete?id={{.Id}}" >删除</a >
                    </li >
                </ol >
            </li >
        {{end}}

        </ul >
    </div >
{{/*<div class="btn-item clearfix" >*/}}
{{/*<div class="fr" >*/}}
{{/*<a class="active" href="#" >1</a >*/}}
{{/*<a href="#" >2</a >*/}}
{{/*<a href="#" >3</a >*/}}
{{/*<a href="#" >4</a >*/}}
{{/*<a href="#" >5</a >*/}}
{{/*<a class="dot" href="#" >...</a >*/}}
{{/*<a href="#" >20</a >*/}}
{{/*<a href="#" >&gt;</a >*/}}
{{/*<span >*/}}
{{/*到<input type="text" >页*/}}
{{/*</span >*/}}
{{/*<a class="confirm-btn" href="#" >确定</a >*/}}
{{/*</div >*/}}
{{/*</div >*/}}
</div >
</body >
</html >